// 如果没有通过拦截器配置域名的话，可以在这里写上完整的URL(加上域名部分)
let appPublic = 'app'

// 登录
let loginByPhoneUrl = appPublic + "/user/loginByPhone"

// 个人信息
let PersonInfoUrl = appPublic + "/staff/info/get"

// - - - -
// 事件数量
let getEventNumUrl = appPublic + "/staff/info/getEventNum"

// 我的事件
let getMyEventUrl = appPublic + "/gridStaff/event/myEvent"

// 上报事件
let submitEventUrl = appPublic + "/gridStaff/event/submitEvent"

// 事件详情
let getEventDetailUrl = appPublic + "/gridStaff/event/eventDetail"
let trackSignUrl = appPublic + "/gridStaff/sign/trackSign"

//通过手机号 身份证 姓名搜用户
let userByTypeUrl =appPublic+ "/staff/facilities/resident/searchResidentByIdCard"

// 获取管辖楼// 搜索
let getBuildingSearchUrl = appPublic + "/staff/facilities/building/listBuilding"

// 获取管辖楼(分页)
let getBuildingListUrl = appPublic + "/staff/facilities/building/pageBuilding"

// 获取管辖房屋
let getlistHouseUrl = appPublic + "/staff/facilities/house/listHouse"

// 获取管辖房屋(分页)
let getOwnHomeListUrl = appPublic + "/staff/facilities/house/pageHouse"

// 获取网格
let getGridListUrl = appPublic + "/common/grid/get"

//首页数据
let indexInfoUrl = appPublic + "/staff/info/getFacilitiesNum"

//获取户籍列表
let familyListUrl = appPublic + "/staff/facilities/family/pageFamily"
//获取户籍列表/搜索
let familySearchUrl = appPublic + "/staff/facilities/family/listFamily"

//获取管辖小区
let getOwnVillageListUrl = appPublic + "/staff/facilities/quarters/pageQuarters"

//获取楼层
let getFloorUrl = appPublic + "/staff/facilities/floor/listFloor"

//获取楼层（分页）
// let getFloorUrl = appPublic + "/staff/facilities/floor/pageFloor"


//轨迹
let userTrackUrl = appPublic + "/gridStaff/sign/getTrack"


//获取小区
let getVillageUrl = appPublic + "/staff/facilities/quarters/listQuarters"

//获取管辖企业
let getComUrl = appPublic + "/staff/facilities/company/listCompany"

//获取店铺
let getCompanyUrl = appPublic + "/staff/facilities/shop/pageShop"

//获取选项
let gridUrl = appPublic + '/common/grid/get'

//公共设施
let getlistTranUrl = appPublic + '/staff/facilities/tran/pageTran'
//公共设施不fye
let getTargetListTranUrl = appPublic + '/staff/facilities/tran/listTran'

//字典
let dictionariesUrl = appPublic + '/common/getDict'

//居民
let getResidentUrl=  appPublic +'/staff/facilities/resident/pageResident'

// 添加店铺
let  dianpuUrl= appPublic +'/staff/facilities/company/addCompany'

// 店铺详情
let dpxrUrl=appPublic+"/staff/facilities/shop/getShop"
// 获取医院
let getHospitalUrl=appPublic+"/staff/facilities/hospital/pageHospital"
// 获取学校
let getSchoolUrl=appPublic+"/staff/facilities/campus/pageCampus"

// 添加户籍
let addFamilyUrl = appPublic+"/staff/facilities/family/addFamily"
// 问题青少年
let getPageCampusKeypersonnelUrl = appPublic+"/staff/important/person/campusKeypersonnel/pageCampusKeypersonnel"
// 涉稳人员
let getAffectStabilizeUserInfoUrl = appPublic+"/staff/important/person/affectStabilizeUserInfo/pageAffectStabilizeUserInfo"
// 信访人员
let getPetitionLetterUserUrl = appPublic+"/staff/important/person/petitionLetterUserInfo/pagePetitionLetterUserInfo"
// 吸毒人员
let getDrugUserUrl = appPublic+"/staff/important/person/drugUserInfo/pageDrugUserInfo"
// 重症患者
let getIllnessUserUrl = appPublic+"/staff/important/person/illnessUserInfo/pageIllnessUserInfo"
// 社区矫正人员
let getCommunityCorrectionUserUrl = appPublic+"/staff/important/person/communityCorrectionUserInfo/pageCommunityCorrectionUserInfo"
// 重点人员
let getImportantPersonUrl = appPublic+"/staff/important/person/pageImportantPerson"
// 残疾人员
let getDisabilityUrl = appPublic+"/staff/important/person/disability/pageDisability"
// 境外人员
let getOverseasUserUrl = appPublic+"/staff/important/person/overseasUser/pageOverseasUser"
// 低龄人员
let getChildrenUrl = appPublic+"/staff/important/person/childrenInfo/pageChildrenInfo"
// 刑释解教人员
let getPrisonerUrl = appPublic+"/staff/important/person/prisoner/pagePrisoner"
// 高龄人员
let getOldUserUrl = appPublic+"/staff/important/person/oldUserInfo/pageOldUserInfo"
// 烈士亲属
let getMartyrKinsfolkUrl = appPublic+"/staff/important/person/martyrKinsfolk/pageMartyrKinsfolkInfo"
// 单元列表
let getListUnitUrl = appPublic+"/staff/facilities/unit/listUnit"
// 修改户籍
let editFamilyUrl = appPublic+"/staff/facilities/family/editFamily"
// 根据 houseid 获取房屋
let getHouseByIdUrl = appPublic+"/staff/facilities/house/getHouse"
// 添加医院
let addHospitalUrl = appPublic+"/staff/facilities/hospital/addHospital"
// 修改医院
let editHospitalUrl = appPublic+"/staff/facilities/hospital/editHospital"
// 根据ID 获取医院医院
let getHospitalByIdUrl = appPublic+"/staff/facilities/hospital/getHospital"
// 添加学校
let addCampusUrl = appPublic+"/staff/facilities/campus/addCampus"
// 编辑学校
let editCampusUrl = appPublic+"/staff/facilities/campus/editCampus"
// 根据ID获取学校
let getCampusByIdUrl = appPublic+"/staff/facilities/campus/getCampus"
// 添加楼栋
let addBuildingUrl = appPublic+"/staff/facilities/building/addBuilding"
// 根据ID获取楼栋
let getBuildingByIdUrl = appPublic+"/staff/facilities/building/getBuilding"
// 修改楼栋
let editBuildingUrl = appPublic+"/staff/facilities/building/editBuilding"
// 添加房屋
let addHouseUrl = appPublic+"/staff/facilities/house/addHouse"
// 编辑房屋
let editHouseUrl = appPublic+"/staff/facilities/house/editHouse"
// 添加小区
let addQuartersUrl = appPublic+"/staff/facilities/quarters/addQuarters"
// 获取企业
let pageEnterpriseUrl = appPublic+"/staff/facilities/enterprise/pageEnterprise"
// 根据ID获取小区
let getQuartersByIdUrl = appPublic+"/staff/facilities/quarters/getQuarters"
// 修改小区
let editQuartersUrl = appPublic+"/staff/facilities/quarters/editQuarters"
// 添加企业
let addEnterpriseUrl = appPublic+"/staff/facilities/enterprise/addEnterprise"
// 修改企业
let editEnterpriseUrl = appPublic+"/staff/facilities/enterprise/editEnterprise"
// 根据ID获取企业
let getEnterpriseByIdUrl = appPublic+"/staff/facilities/enterprise/getEnterprise"
// 添加公共设施
let addTranUrl = appPublic+"/staff/facilities/tran/addTran"
// 修改公共设施
let editTranUrl = appPublic+"/staff/facilities/tran/editTran"
// 根据ID获取公共设施
let getTranByIdUrl = appPublic+"/staff/facilities/tran/getTran"
// 添加商铺
let addShopUrl = appPublic+"/staff/facilities/shop/addShop"
// 获取不同类型重点人员数量
let getImportantPersonNumUrl = appPublic+"/staff/important/person/getImportantPersonNum"
// 添加境外人员
let addOverseasUserUrl = appPublic+"/staff/important/person/overseasUser/addOverseasUser"
// 根据ID获取境外人员
let getOverseasUserByIdUrl = appPublic+"/staff/important/person/overseasUser/getOverseasUser"
// 编辑境外人员
let editOverseasUserUrl = appPublic+"/staff/important/person/overseasUser/editOverseasUser"
// 添加低龄人员
let addChildrenInfoUrl = appPublic+"/staff/important/person/childrenInfo/addChildrenInfo"
// 添加烈士亲属
let addMartyrKinsfolkInfoUrl = appPublic+"/staff/important/person/martyrKinsfolk/addMartyrKinsfolkInfo"
// 修改烈士亲属
let editMartyrKinsfolkInfoUrl = appPublic+"/staff/important/person/martyrKinsfolk/editMartyrKinsfolkInfo"
// huoqu 烈士亲属
let getMartyrKinsfolkInfoByIdUrl = appPublic+"/staff/important/person/martyrKinsfolk/getMartyrKinsfolkInfo"
// 添加社区矫正人员
let addCommunityCorrectionUserInfoUrl = appPublic+"/staff/important/person/communityCorrectionUserInfo/addCommunityCorrectionUserInfo"
// 获取社区矫正人员
let getCommunityCorrectionUserInfoByIdUrl = appPublic+"/staff/important/person/communityCorrectionUserInfo/getCommunityCorrectionUserInfo"
// 修改社区矫正人员
let editCommunityCorrectionUserInfoUrl = appPublic+"/staff/important/person/communityCorrectionUserInfo/editCommunityCorrectionUserInfo"
// 添加重症患者
let addIllnessUserInfoUrl = appPublic+"/staff/important/person/illnessUserInfo/addIllnessUserInfo"
// 获取重症患者
let getIllnessUserInfoByIdUrl = appPublic+"/staff/important/person/illnessUserInfo/getIllnessUserInfo"
// 修改重症患者
let editIllnessUserInfoUrl = appPublic+"/staff/important/person/illnessUserInfo/editIllnessUserInfo"
// 添加吸毒人员
let addDrugUserInfoUrl = appPublic+"/staff/important/person/drugUserInfo/addDrugUserInfo"
// 获取吸毒人员
let getDrugUserInfoByIdUrl = appPublic+"/staff/important/person/drugUserInfo/getDrugUserInfo"
// 修改吸毒人员
let editDrugUserInfoUrl = appPublic+"/staff/important/person/drugUserInfo/editDrugUserInfo"
// 信访人员添加
let addPetitionLetterUserInfoUrl = appPublic+"/staff/important/person/petitionLetterUserInfo/addPetitionLetterUserInfo"
// 信访人员获取
let getPetitionLetterUserInfoByIdUrl = appPublic+"/staff/important/person/petitionLetterUserInfo/getPetitionLetterUserInfo"
// 信访人员修改
let editPetitionLetterUserInfoUrl = appPublic+"/staff/important/person/petitionLetterUserInfo/editPetitionLetterUserInfo"
// 涉稳人员添加
let addAffectStabilizeUserInfoUrl = appPublic+"/staff/important/person/affectStabilizeUserInfo/addAffectStabilizeUserInfo"
// 涉稳人员获取
let getAffectStabilizeUserInfoByIdUrl = appPublic+"/staff/important/person/affectStabilizeUserInfo/getAffectStabilizeUserInfo"
// 涉稳人员修改
let editAffectStabilizeUserInfoUrl = appPublic+"/staff/important/person/affectStabilizeUserInfo/editAffectStabilizeUserInfo"
// 问题青少年添加
let addCampusKeypersonnelUrl = appPublic+"/staff/important/person/campusKeypersonnel/addCampusKeypersonnel"
// 问题青少年获取
let getCampusKeypersonnelByIdUrl = appPublic+"/staff/important/person/campusKeypersonnel/getCampusKeypersonnel"
// 问题青少年修改
let editCampusKeypersonnelUrl = appPublic+"/staff/important/person/campusKeypersonnel/editCampusKeypersonnel"
// 添加高龄人员
let addOldUserInfoUrl = appPublic+"/staff/important/person/oldUserInfo/addOldUserInfo"
// 获取高龄人员
let getOldUserInfoByIdUrl = appPublic+"/staff/important/person/oldUserInfo/getOldUserInfo"
// 修改高龄人员
let editOldUserInfoUrl = appPublic+"/staff/important/person/oldUserInfo/editOldUserInfo"
// 添加残疾人员
let addDisabilityUrl = appPublic+"/staff/important/person/disability/addDisability"
// 获取残疾人员
let getDisabilityByIdUrl = appPublic+"/staff/important/person/disability/getDisability"
// 修改残疾人员
let editDisabilityUrl = appPublic+"/staff/important/person/disability/editDisability"
// 添加解教人员
let addPrisonerUrl = appPublic+"/staff/important/person/prisoner/addPrisoner"
// 获取 解教人员
let getPrisonerByIdUrl = appPublic+"/staff/important/person/prisoner/getPrisoner"
// 修改 解教人员
let editPrisonerUrl = appPublic+"/staff/important/person/prisoner/editPrisoner"
// 获取低龄人员
let getChildrenInfoByIdUrl = appPublic+"/staff/important/person/childrenInfo/getChildrenInfo"
// 修改低龄人员
let editChildrenInfoUrl = appPublic+"/staff/important/person/childrenInfo/editChildrenInfo"
// 获取管辖商铺
let getShopByIdUrl = appPublic+"/staff/facilities/shop/getShop"
// 修改商铺
let editShopUrl = appPublic+"/staff/facilities/shop/editShop"
// 添加人口
let addResidentUrl = appPublic+"/staff/facilities/resident/addResident"
// 获取考勤情况
let getAttendanceRecordUrl = appPublic+"/gridStaff/sign/getAttendanceRecord"
// 获取签到详情
let getCheckingDetailUrl = appPublic+"/gridStaff/sign/getCheckingDetail"
// 考勤签到
let attendanceUrl = appPublic+"/gridStaff/sign/attendance"
// 我的任务
let myTaskUrl = appPublic+"/gridStaff/task/myTask"
// 提交任务
let submitTaskUrl = appPublic+"/gridStaff/task/submitTask"
// 申请请假
let applyLeaveUrl = appPublic+"/gridStaff/sign/applyLeave"
// 获取请假申请
let getLeaveApplyUrl = appPublic+"/gridStaff/sign/getLeaveApply"
// 完成事件
let finishEventUrl = appPublic+"/gridStaff/event/finishEvent"
// 工作情况获取
let getGridStaffWorkReportUrl = appPublic+"/staff/info/getGridStaffWorkReport"
// 任务详情
let myTaskDetailUrl = appPublic+"/gridStaff/task/myTaskDetail"
// 添加日志
let addWorkLogUrl = appPublic+"/staff/work/log/addWorkLog"
// 获取日志
let pageWorkLogUrl = appPublic+"/staff/work/log/pageWorkLog"
// 获取日志
let getWorkLogByIdUrl = appPublic+"/staff/work/log/getWorkLog"
// 修改密码
let exchangePasswordUrl = appPublic+"/staff/info/exchangePassword"

const install = (Vue, vm) => {
	
	let getTargetListTran = (params = {}) => vm.$u.get(getTargetListTranUrl, params)
	let loginByPhone = (params = {}) => vm.$u.post(loginByPhoneUrl, params)
	let PersonInfo = (params = {}) => vm.$u.get(PersonInfoUrl, params)
	let getEventNum = (params = {}) => vm.$u.get(getEventNumUrl, params)
	let getMyEvent = (params = {}) => vm.$u.get(getMyEventUrl, params)
	let submitEvent = (params = {}) => vm.$u.post(submitEventUrl, params)
	let trackSign = (params = {}) => vm.$u.post(trackSignUrl, params)
	let getEventDetail = (params = {}) => vm.$u.get(getEventDetailUrl, params)
	let getUserByType = (params = {}) => vm.$u.get(userByTypeUrl,params)
	let addBuilding = (params = {}) => vm.$u.post(addBuildingUrl, params)
	let getGridList = (params = {}) => vm.$u.get(getGridListUrl, params)
	let indexInfo = (params = {}) => vm.$u.get(indexInfoUrl, params)
	let getFamilyList = (params = {}) => vm.$u.get(familyListUrl, params)
	let getuserTrack = (params = {}) => vm.$u.get(userTrackUrl, params)
	let getBuildingList = (params = {}) => vm.$u.get(getBuildingListUrl, params)
	let getOwnHomeList = (params = {}) => vm.$u.get(getOwnHomeListUrl, params)
	let getOwnVillageList = (params = {}) => vm.$u.get(getOwnVillageListUrl, params)
	let addHouse = (params = {}) => vm.$u.post(addHouseUrl, params)
	let getFloor = (params = {}) => vm.$u.get(getFloorUrl, params)
	let getVillage = (params = {}) => vm.$u.get(getVillageUrl, params)
	let addTcQuarters = (params = {}) => vm.$u.post(addQuartersUrl, params)
	let grid = (params = {}) => vm.$u.get(gridUrl, params)
	let getCompany = (params = {}) => vm.$u.get(getCompanyUrl, params)
	let getlistTran = (params = {}) => vm.$u.get(getlistTranUrl, params)
	let dictionaries = (params = {}) => vm.$u.get(dictionariesUrl, params) // 字典
	let getResident= (params = {}) => vm.$u.get(getResidentUrl, params)
	let dddUrl= (params = {}) => vm.$u.post(dianpuUrl, params)
	let xxxUrl=(params={})=>vm.$u.get(dpxrUrl,params)
	let editQuarters = (params={})=>vm.$u.put(editQuartersUrl,params)
	let getCom = (params={})=>vm.$u.get(getComUrl,params)
	let getHospital = (params={})=>vm.$u.get(getHospitalUrl,params)
	let getSchool = (params={})=>vm.$u.get(getSchoolUrl,params)
	let addFamily = (params={}) => vm.$u.post(addFamilyUrl,params)
	let getlistHouse = (params={}) => vm.$u.get(getlistHouseUrl,params)
	let getPageCampusKeypersonnel = (params={}) => vm.$u.get(getPageCampusKeypersonnelUrl,params)
	let getAffectStabilizeUserInfo = (params={}) => vm.$u.get(getAffectStabilizeUserInfoUrl,params)
	let getPetitionLetterUser = (params={}) => vm.$u.get(getPetitionLetterUserUrl,params)
	let getDrugUser = (params={}) => vm.$u.get(getDrugUserUrl,params)
	let getIllnessUser = (params={}) => vm.$u.get(getIllnessUserUrl,params)
	let getCommunityCorrectionUser = (params={}) => vm.$u.get(getCommunityCorrectionUserUrl,params)
	let getImportantPerson = (params={}) => vm.$u.get(getImportantPersonUrl,params)
	let getDisability = (params={}) => vm.$u.get(getDisabilityUrl,params)
	let getOverseasUser = (params={}) => vm.$u.get(getOverseasUserUrl,params)
	let getChildren = (params={}) => vm.$u.get(getChildrenUrl,params)
	let getPrisoner = (params={}) => vm.$u.get(getPrisonerUrl,params)
	let getOldUser = (params={}) => vm.$u.get(getOldUserUrl,params)
	let getMartyrKinsfolk = (params={}) => vm.$u.get(getMartyrKinsfolkUrl,params)
	let getBuildingSearch = (params={}) => vm.$u.get(getBuildingSearchUrl,params)
	let familySearch = (params={}) => vm.$u.get(familySearchUrl,params)
	let getListUnit = (params={}) => vm.$u.get(getListUnitUrl,params)
	let editFamily = (params={}) => vm.$u.put(editFamilyUrl,params)
	let getHouseById = (params={}) => vm.$u.get(getHouseByIdUrl,params)
	let addHospital = (params={}) => vm.$u.post(addHospitalUrl,params)
	let editHospital = (params={}) => vm.$u.put(editHospitalUrl,params)
	let getHospitalById = (params={}) => vm.$u.get(getHospitalByIdUrl,params)
	let addCampus = (params={}) => vm.$u.post(addCampusUrl,params)
	let getCampusById = (params={}) => vm.$u.get(getCampusByIdUrl,params)
	let editCampus = (params={}) => vm.$u.put(editCampusUrl,params)
	let getBuildingById = (params={}) => vm.$u.get(getBuildingByIdUrl,params)
	let editBuilding = (params={}) => vm.$u.put(editBuildingUrl,params)
	let editHouse = (params={}) => vm.$u.put(editHouseUrl,params)
	let pageEnterprise = (params={}) => vm.$u.get(pageEnterpriseUrl,params)
	let getQuartersById = (params={}) => vm.$u.get(getQuartersByIdUrl,params)
	let addEnterprise = (params={}) => vm.$u.post(addEnterpriseUrl,params)
	let editEnterprise = (params={}) => vm.$u.post(editEnterpriseUrl,params)
	let getEnterpriseById = (params={}) => vm.$u.get(getEnterpriseByIdUrl,params)
	let addTran = (params={}) => vm.$u.post(addTranUrl,params)
	let getTranById = (params={}) => vm.$u.get(getTranByIdUrl,params)
	let editTran = (params={}) => vm.$u.put(editTranUrl,params)
	let addShop = (params={}) => vm.$u.post(addShopUrl,params)
	let getImportantPersonNum = (params={}) => vm.$u.get(getImportantPersonNumUrl,params)
	let addOverseasUser = (params={}) => vm.$u.post(addOverseasUserUrl,params)
	let getOverseasUserById = (params={}) => vm.$u.get(getOverseasUserByIdUrl,params)
	let editOverseasUser = (params={}) => vm.$u.put(editOverseasUserUrl,params)
	let addChildrenInfo = (params={}) => vm.$u.post(addChildrenInfoUrl,params)
	let addMartyrKinsfolkInfo = (params={}) => vm.$u.post(addMartyrKinsfolkInfoUrl,params)
	let editMartyrKinsfolkInfo = (params={}) => vm.$u.put(editMartyrKinsfolkInfoUrl,params)
	let getMartyrKinsfolkInfoById = (params={}) => vm.$u.get(getMartyrKinsfolkInfoByIdUrl,params)
	let addCommunityCorrectionUserInfo = (params={}) => vm.$u.post(addCommunityCorrectionUserInfoUrl,params)
	let getCommunityCorrectionUserInfoById = (params={}) => vm.$u.get(getCommunityCorrectionUserInfoByIdUrl,params)
	let editCommunityCorrectionUserInfo = (params={}) => vm.$u.put(editCommunityCorrectionUserInfoUrl,params)
	let addIllnessUserInfo = (params={}) => vm.$u.post(addIllnessUserInfoUrl,params)
	let getIllnessUserInfoById = (params={}) => vm.$u.get(getIllnessUserInfoByIdUrl,params)
	let editIllnessUserInfo = (params={}) => vm.$u.put(editIllnessUserInfoUrl,params)
	let addDrugUserInfo = (params={}) => vm.$u.post(addDrugUserInfoUrl,params)
	let getDrugUserInfoById = (params={}) => vm.$u.get(getDrugUserInfoByIdUrl,params)
	let editDrugUserInfo = (params={}) => vm.$u.put(editDrugUserInfoUrl,params)
	let addPetitionLetterUserInfo = (params={}) => vm.$u.post(addPetitionLetterUserInfoUrl,params)
	let getPetitionLetterUserInfoById = (params={}) => vm.$u.get(getPetitionLetterUserInfoByIdUrl,params)
	let editPetitionLetterUserInfo = (params={}) => vm.$u.put(editPetitionLetterUserInfoUrl,params)
	let addAffectStabilizeUserInfo = (params={}) => vm.$u.post(addAffectStabilizeUserInfoUrl,params)
	let getAffectStabilizeUserInfoById = (params={}) => vm.$u.get(getAffectStabilizeUserInfoByIdUrl,params)
	let editAffectStabilizeUserInfo = (params={}) => vm.$u.post(editAffectStabilizeUserInfoUrl,params)
	let addCampusKeypersonnel = (params={}) => vm.$u.post(addCampusKeypersonnelUrl,params)
	let getCampusKeypersonnelById = (params={}) => vm.$u.get(getCampusKeypersonnelByIdUrl,params)
	let editCampusKeypersonnel = (params={}) => vm.$u.put(editCampusKeypersonnelUrl,params)
	let addOldUserInfo = (params={}) => vm.$u.post(addOldUserInfoUrl,params)
	let getOldUserInfoById = (params={}) => vm.$u.get(getOldUserInfoByIdUrl,params)
	let editOldUserInfo = (params={}) => vm.$u.put(editOldUserInfoUrl,params)
	let addDisability = (params={}) => vm.$u.post(addDisabilityUrl,params)
	let getDisabilityById = (params={}) => vm.$u.get(getDisabilityByIdUrl,params)
	let editDisability = (params={}) => vm.$u.put(editDisabilityUrl,params)
	let addPrisoner = (params={}) => vm.$u.post(addPrisonerUrl,params)
	let getPrisonerById = (params={}) => vm.$u.get(getPrisonerByIdUrl,params)
	let editPrisoner = (params={}) => vm.$u.put(editPrisonerUrl,params)
	let getChildrenInfoById = (params={}) => vm.$u.get(getChildrenInfoByIdUrl,params)
	let editChildrenInfo = (params={}) => vm.$u.put(editChildrenInfoUrl,params)
	let getShopById = (params={}) => vm.$u.get(getShopByIdUrl,params)
	let editShop = (params={}) => vm.$u.post(editShopUrl,params)
	let addResident = (params={}) => vm.$u.post(addResidentUrl,params)
	let getAttendanceRecord = (params={}) => vm.$u.get(getAttendanceRecordUrl,params)
	let getCheckingDetail = (params={}) => vm.$u.get(getCheckingDetailUrl,params)
	let attendance = (params={}) => vm.$u.post(attendanceUrl,params)
	let myTask = (params={}) => vm.$u.get(myTaskUrl,params)
	let submitTask = (params={}) => vm.$u.post(submitTaskUrl,params)
	let applyLeave = (params={}) => vm.$u.post(applyLeaveUrl,params)
	let getLeaveApply = (params={}) => vm.$u.get(getLeaveApplyUrl,params)
	let finishEvent = (params={}) => vm.$u.post(finishEventUrl,params)
	let getGridStaffWorkReport = (params={}) => vm.$u.get(getGridStaffWorkReportUrl,params)
	let myTaskDetail = (params={}) => vm.$u.get(myTaskDetailUrl,params)
	let addWorkLog = (params={}) => vm.$u.post(addWorkLogUrl,params)
	let pageWorkLog = (params={}) => vm.$u.get(pageWorkLogUrl,params)
	let getWorkLogById = (params={}) => vm.$u.get(getWorkLogByIdUrl,params)
	let exchangePassword = (params={}) => vm.$u.get(exchangePasswordUrl,params)
	
	vm.$u.api = {
		getTargetListTran,
		loginByPhone,
		PersonInfo,
		getEventNum,
		getMyEvent,
		submitEvent,
		trackSign,
		getEventDetail,
		getUserByType,
		addBuilding,
		getGridList,
		indexInfo,
		getFamilyList,
		getuserTrack,
		getBuildingList,
		getOwnHomeList,
		getOwnVillageList,
		addHouse,
		getFloor,
		getVillage,
		addTcQuarters,
		grid,
		getCompany,
		getlistTran,
		dictionaries,
		getResident,
		dddUrl,
		xxxUrl,
		editQuarters,
		getCom,
		getHospital,
		getSchool,
		addFamily,
		getlistHouse,
		getPageCampusKeypersonnel,
		getAffectStabilizeUserInfo,
		getPetitionLetterUser,
		getDrugUser,
		getIllnessUser,
		getCommunityCorrectionUser,
		getImportantPerson,
		getDisability,
		getOverseasUser,
		getChildren,
		getPrisoner,
		getOldUser,
		getMartyrKinsfolk,
		getBuildingSearch,
		familySearch,
		getListUnit,
		editFamily,
		getHouseById,
		addHospital,
		editHospital,
		getHospitalById,
		addCampus,
		getCampusById,
		editCampus,
		getBuildingById,
		editBuilding,
		editHouse,
		pageEnterprise,
		getQuartersById,
		addEnterprise,
		editEnterprise,
		getEnterpriseById,
		addTran,
		getTranById,
		editTran,
		addShop,
		getImportantPersonNum,
		addOverseasUser,
		getOverseasUserById,
		editOverseasUser,
		addChildrenInfo,
		addMartyrKinsfolkInfo,
		editMartyrKinsfolkInfo,
		getMartyrKinsfolkInfoById,
		addCommunityCorrectionUserInfo,
		getCommunityCorrectionUserInfoById,
		editCommunityCorrectionUserInfo,
		addIllnessUserInfo,
		getIllnessUserInfoById,
		editIllnessUserInfo,
		addDrugUserInfo,
		getDrugUserInfoById,
		editDrugUserInfo,
		addPetitionLetterUserInfo,
		getPetitionLetterUserInfoById,
		editPetitionLetterUserInfo,
		addAffectStabilizeUserInfo,
		getAffectStabilizeUserInfoById,
		editAffectStabilizeUserInfo,
		addCampusKeypersonnel,
		getCampusKeypersonnelById,
		editCampusKeypersonnel,
		addOldUserInfo,
		getOldUserInfoById,
		editOldUserInfo,
		addDisability,
		getDisabilityById,
		editDisability,
		addPrisoner,
		getPrisonerById,
		editPrisoner,
		getChildrenInfoById,
		editChildrenInfo,
		getShopById,
		editShop,
		addResident,
		getAttendanceRecord,
		getCheckingDetail,
		attendance,
		myTask,
		submitTask,
		applyLeave,
		getLeaveApply,
		finishEvent,
		getGridStaffWorkReport,
		myTaskDetail,
		addWorkLog,
		pageWorkLog,
		getWorkLogById,
		exchangePassword
	}
}

export default {
	install
}
